import { createRouter, createWebHistory } from 'vue-router';
import ComposeEditor from '../components/ComposeEditor.vue';
import DeployContainer from '../components/DeployContainer.vue';
import ViewLogs from '../components/ViewLogs.vue';
import QRCodeViewer from '../components/QRCodeViewer.vue'

const routes = [
  {
    path: '/',
    name: 'ComposeEditor',
    component: ComposeEditor,
  },
  {
    path: '/deploy',
    name: 'DeployContainer',
    component: DeployContainer,
  },
  {
    path: '/logs',
    name: 'ViewLogs',
    component: ViewLogs,
  },
  {
    path: '/qrcode',
    name: 'QRCodeViewer',
    component: QRCodeViewer,
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
